# -*- coding: utf-8 -*-
# *****************************************************************************
# *  OpenDomo: Security & Domotics
# *  Copyright (C) 2010  Daniel Lerch Hostalot <dlerch@gmail.com>
# *
# *  This program is free software: you can redistribute it and/or modify
# *  it under the terms of the GNU General Public License as published by
# *  the Free Software Foundation, either version 3 of the License, or
# *  (at your option) any later version.
# *
# *  This program is distributed in the hope that it will be useful,
# *  but WITHOUT ANY WARRANTY; without even the implied warranty of
# *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# *  GNU General Public License for more details.
# *
# *  You should have received a copy of the GNU General Public License
#*  along with this program.  If not, see <http://www.gnu.org/licenses/>.
# *****************************************************************************
# Author: Isidro Catalan <skarvin@gmail.com>


"""
setuptools script for the plugin.
"""

import os
from setuptools import setup
from elisa.core.utils.dist import find_packages, TrialTest, Clean


packages, package_dir = find_packages(os.path.dirname(__file__))
cmdclass = dict(test=TrialTest, clean=Clean)

setup(name='elisa-plugin-opendomo',
    version='0.1',
    description='Opendomo Plugin',
    long_description='Plugin to Control your opendomo network using Moovida Media Center',
    license='GPL3',
    author='Opendomo Team',
    author_email='info@opendomo.com',
    namespace_packages=['elisa', 'elisa.plugins'],
    packages=packages,
    package_dir=package_dir,
    package_data={'': ['*.png', '*.conf', 'icons/*'], 
                    'elisa.plugins.opendomo.i18n': ['*.po', '*/LC_MESSAGES/*.mo', '*.pot'], 
                 }, 
    entry_points="""\
    [elisa.core.components.resource_provider]
    OpendomoResourceProvider = elisa.plugins.opendomo.resource_provider:OpendomoResourceProvider
    [elisa.core.plugin_registry]
    use = elisa.plugins.opendomo.controller:use_me_hook
    """,
    decorator_mappings=[
  # ('/poblesec/sections_menu', 'elisa.plugins.opendomo.controller:opendomo_decorator'),
    ('/poblesec/plugins_menu', 'elisa.plugins.opendomo.controller:opendomo_decorator_main'),
  #  ('/poblesec/pictures/internet', 'elisa.plugins.opendomo.controller:opendomo_decorator'),
    ('/poblesec/settings/plugins', 'elisa.plugins.opendomo.settings:opendomo_settings_decorator') ],
    controller_mappings=[ 
#    ('/poblesec/opendomo/access',                      'elisa.plugins.opendomo.controller:ControllerMixin.decorate'),
                         ('/poblesec/opendomo/main', 'elisa.plugins.opendomo.controller:OpendomoListSwitcherPreviewController'),
 			 			 ('/poblesec/opendomo/settings', 'elisa.plugins.opendomo.settings:SettingsController'),                        
                         ('/poblesec/opendomo/login', 'elisa.plugins.opendomo.settings:OpendomoLoginController'),
                         ('/poblesec/opendomo/access','elisa.plugins.opendomo.controller:OpendomoListSwitcherPreviewController'),

                         ],
        cmdclass=cmdclass

)
